Part Number Hot Search : 
MICRO 66TQC SAA71 SMC170 TA200816 F15AR 68F30 2SA905
Product Description
Full Text Search
 

To Download DS87C550 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 50 061499 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: http://www.maxim - ic.com/errata . features 87c52 - compatible - 8051 pin - and instruction set - compatible - three 16 - bit timer/counters - 256 bytes scratchpad ram on - chip memory - 8 kb eprom (otp & windowed packages) - 1 kb extra on - chip sram for movx access on - chip analog to digital conv erter - eight channels of analog input, 10 - bit resolution - fast conversion time - selectable internal or external reference voltage pulse - width modulator outputs - four channels of 8 - bit pwm - channels cascadable to 16 - bit pwm four capture plus three compare regist ers 55 i/o port pins new dual data pointer operation - either data pointer can be incremented or decremented romsize feature - selects effective on - chip rom size from 0 to 8k - allows access to entire external memory map - dynamically adjustable by software high - s peed architecture - 4 clocks/machine cycle (8051 = 12) - runs dc to 33 mhz clock rates - single - cycle instruction in 121 ns - new stretch cycle feature allows access to fast/slow memory or peripherals unique power savings modes emi reduction mode disables ale when not needed high integration controller includes: - power - fail reset - early - warning power - fail interrupt - two full - duplex hardware serial ports - programmable watchdog timer 16 total interrupt sources with six external available in 68 - pin plcc, 80 - pin pqfp, and 68 - pin windowed clcc pin assignment DS87C550 eprom high - speed micro with adc and pwm preliminary www.maxim - ic.com 9 1 61 27 43 10 26 60 44 68 - pin plcc 68 - pin windowed clcc DS87C550 1 24 64 41 40 25 65 80 DS87C550 80 - pin pqfp
2 of 50 description the DS87C550 eprom high - speed micro with adc and pwm is a member of the fastest 100% 8051 - compatible microcontroller family available. it features a redesigned processor core that removes wasted clock and memory cycles. as a result, it executes 8051 instructions up to three times faster than the original architecture for the same crystal speed. the DS87C550 also offers a maximum crystal speed of 33 mhz, resulting in appare nt execution speeds of up to 99 mhz. the DS87C550 uses an industry standard 8051 pin - out and includes standard resources such as three timer/counters, and 256 bytes of scratchpad ram. this device also features 8 kbytes of eprom with an extra 1 kbyte of da ta ram (in addition to the 256 bytes of scratchpad ram), and 55 i/o ports pins. both one - time - programmable (otp) and windowed packages are available. besides greater speed, the DS87C550 includes a second full hardware serial port, seven additional interru pts, a programmable watchdog timer, brownout monitor, and power - fail reset. the DS87C550 also provides dual data pointers (dptrs) to speed block data memory moves. the user can also dynamically adjust the speed of external accesses between two and 12 mach ine cycles for flexibility in selecting memory and peripherals. power management mode (pmm) is useful for portable or battery - powered applications. this feature allows software to select a lower speed clock as the main time base. while normal operation ha s a machine cycle rate of 4 clocks per cycle, the pmm allows the processor to run at 1024 clocks per cycle. for example, at 12 mhz, standard operation has a machine cycle rate of 3 mhz. in power management mode, software can select an 11.7 khz (12 mhz/102 4) machine cycle rate. there is a corresponding reduction in power consumption due to the processor running slower. the DS87C550 also offers two features that can significantly reduce electromagnetic interference (emi). one emi reduction feature allows so ftware to select a reduced emission mode that disables the ale signal when it is unneeded. the other emi reduction feature controls the current to the address and data pins interfacing to external devices producing a controlled transition of these signals. ordering information part number package max. clock speed temperature range DS87C550 - qcl 68 - pin plcc 33 mhz 0c to +70c DS87C550 - fcl 80 - pin pqfp 33 mhz 0c to +70c DS87C550 - qnl 68 - pin plcc 33 mhz - 40c to +85c DS87C550 - fnl 80 - pin pqfp 33 mhz - 40c to +85c DS87C550 - kcl 68 - pin windowed clcc 33 mhz 0c to 70c
ds87c55 0 3 of 50 DS87C550 block diagram figure 1
ds87c55 0 4 of 50 pin description table 1 plcc/ clcc qfp signal name description 2 72 v cc v cc - digital +5v power input. 36 37 34 35 gnd gnd ? digital ground. 15 9 rst rst - i/o. the rst input pin contains a schmitt voltage input to recognize external active high reset inputs. the pin also employs an internal pulldown resistor to allow for a combination of wired or external reset sources. an rc is not required for power - up, as the DS87C550 provides this function internally. this pin also acts as an output when the source of the reset is internal to the device (i.e., watchdog timer, power - fail, or crystal - fail detect). in this case, the rst pin will be held high while the processor is in a reset state, and will return to low as the processor exits this state. when this output capability is used, the rst pin should not be connected to an rc network or a logic output driver. 35 34 32 31 xtal1 xtal2 input - the crystal oscil lator pins xtal1 and xtal2 provide support for fundamental mode, parallel resonant, at cut crystals. xtal1 acts also as an input if there is an external clock source in place of a crystal. xtal2 serves as the output of the crystal amplifier. note that this output cannot be used to drive any additional load when a crystal is attached as this can disturb the oscillator circuit. 47 48 psen psen - output. the program store enable output. this signal is commonly connected t o optional external rom memory as a chip enable. psen will provide an active low pulse during a program byte access, and is driven high when not accessing external program memory. 48 49 ale ale - output. the address latch enable output functions as a clock to latch the external address lsb from the multiplexed address/data bus on port 0. this signal is commonly connected to the latch enable of an external 373 family transparent latch. ale is driven high when the DS87C550 is in a reset co ndition. ale can also be disabled and forced high using the emi reduction mode aleoff. 49 50 ea ea - input. an active low input pin that when connected to ground will force the DS87C550 to use an external program memory. the internal ram is still accessible as determined by register settings. ea should be connected to v cc to use internal program memory. the input level on this pin is latched at reset. 16 - 23 10 - 17 p1.0 - p1.7 port 1 - i/o. port 1 functions as both an 8 - bit, bi - directional i/o port and an alternate functional interface for several internal resources. the reset condition of port 1 is all bits at logic 1. in this state, a weak pullup holds the port high. this condition allows the pin s to serve as both input and output. input is possible since any external circuit whose output drives the port will overcome the weak pullup. when software writes a 0 to any port 1 pin, the DS87C550 will activate a strong pulldown that remains on until eit her a 1 is written or a reset occurs. writing a 1 after the port has been at 0 will cause a strong transition driver to turn on, followed by a weaker sustaining pullup. once the momentary strong driver turns off, the port again returns to a weakly held hig h output (and input) state. the alternate functions of port 1 pins are detailed below. note that when the capture/compare functions of timer 2 are used, the interrupt input pins become capture trigger inputs. port alternate function 16 10 p1.0 i nt2/ct0 external interrupt 2/capture trigger 0 17 11 p1.1 int3/ct1 external interrupt 3/capture trigger 1 18 12 p1.2 int4/ct2 external interrupt 4/capture trigger 2 19 13 p1.3 int5/ct3 external interrupt 5/capture trigger 3 20 14 p1.4 t2 external i /o for timer/counter 2 21 15 p1.5 t2ex timer/counter 2 capture/reload trigger 22 16 p1.6 rxd1 serial port 1 input 23 17 p1.7 txd1 serial port 1 output
ds87c55 0 5 of 50 plcc/ clcc qfp signal name description 50 - 57 57 56 55 54 53 52 51 50 51 - 58 58 57 56 55 54 53 52 51 p0.0 (ad0) p0.1 (ad1) p0.2 (ad2) p0.3 (ad3) p0.4 (ad4) p0.5 (ad5) p0.6 (ad6) p0.7 (ad7) port 0 - i/o - ad0 - 7. port 0 is an open - drain 8 - bit, bi - directional general - purpose i/o port. when used in this mode pullup resistors are required to provide a logi c 1 output. as an alternate function, port 0 operates as a multiplexed address/data bus to access off - chip memory or peripherals. in this mode, the lsb of the memory address is output on the bus during the time that ale is high. when ale falls to a logic 0 , the port transitions to a bi - directional data bus. in this mode, the port provides active high drivers for logic 1 output. the reset condition of port 0 is tri - state (i.e., the open drain devices are off). 39 - 46 39 40 41 42 43 44 45 46 38 - 42 45 - 47 38 3 9 40 41 42 45 46 47 p2.0 (a8) p2.1 (a9) p2.2 (a10) p2.3 (a11) p2.4 (a12) p2.5 (a13) p2.6 (a14) p2.7 (a15) port 2 - i/o address a15:a8. port 2 functions as an 8 - bit bi - directional i/o port or alternately as an external address bus (a15 - a8). the reset cond ition of port 2 is logic high i/o state. in this state, weak pullups hold the port high allowing the pins to be used as an input or output as described above for port 1. as an alternate function port 2 can function as msb of the external address bus. this bus can be used to read external memory or peripherals. 24 - 31 18 - 20 23 - 27 p3.0 - p3.7 port 3 - i/o. port 3 functions as an 8 - bit bi - directional i/o port or alternately as an interface for external interrupts, serial port 0, timer 0 & 1 inputs, and rd and wr strobes. when functioning as an i/o port, these pins operate as indicated above for port 1. the alternate modes of port 3 are detailed below. port alternate mode 24 18 p3.0 rxd0 serial port 0 input 25 19 p3.1 txd0 serial port 0 output 26 20 p3.2 int0 external interrupt 0 27 23 p3.3 int1 external interrupt 1 28 24 p3.4 t0 timer 0 external input 29 25 p3.5 t1 timer 1 external input 30 26 p3.6 wr external data memory write strobe 31 27 p3.7 rd external data memory read strobe 7 - 14 80 1 - 2 4 - 8 p4.0 - p4.7 port 4 - i/o. port 4 functions as an 8 - bit bi - directional i/o port or alternately as an interface to timer 2?s capt ure compare functions. when functioning as an i/o port, these pins operate as indicated in the port 1 description. the alternate modes of port 4 are detailed below. port 4 alternate mode 7 80 p4.0 cmsr0 timer 2 compare match set/reset output 0 8 1 p4.1 cmsr1 timer 2 compare match set/reset output 1 9 2 p4.2 cmsr2 timer 2 compare match set/reset output 2 10 4 p4.3 cmsr3 timer 2 compare match set/reset output 3 11 5 p4.4 cmsr4 timer 2 compare match set/reset output 4 12 6 p4.5 cmsr5 timer 2 compare match set/reset output 5 13 7 p4.6 cmt0 timer 2 compare match toggle output 0 14 8 p4.7 cmt1 timer 2 compare match toggle output 1
ds87c55 0 6 of 50 plcc/ clcc qfp signal name description 1, 62 - 68 64 - 71 p5.0 - p5.7 port 5 - i/o. port 5 functions as an open - d rain 8 - bit bi - directional i/o port or alternately as an interface to the a/d converter. when used for general purpose i/o, these pins operate in a quasi - bi - directional mode. writing a logic 1 to these pins (reset condition) will cause them to tri - state. th is allows the pins to serve as inputs since the tri - state condition can be driven by an external device. if a logic 0 is written to a pin, it is pulled down internally and therefore serves as an output pin containing a logic 0. because these pins are open - drain, external pullup resistors are required to create a logic 1 level when they are used as outputs. as an alternate function port 5 pins operate as the analog inputs for the a/d converter as described below. port alternate mode 1 71 p5.0 adc0 analog to digital converter input channel 0 68 70 p5.1 adc1 analog to digital converter input channel 1 67 69 p5.2 adc2 analog to digital converter input channel 2 66 68 p5.3 adc3 analog to digital converter input channel 3 65 67 p5.4 adc4 analog to digital converter input channel 4 64 66 p5.5 adc5 analog to digital converter input channel 5 63 65 p5.6 adc6 analog to digital converter input channel 6 62 64 p5.7 adc7 analog to digital converter input channel 7 3 - 6, 32 33, 38 28, 29 37 74 - 77 p 6.0 - p6.5 p6.7 port 6 - i/o. port 6 functions as an 6 - bit bi - directional i/o port or alternately as an interface to the pwm and a/d on - board peripherals. as an i/o port, these pins operate as described in port 1. the alternate modes of port 6 are detailed b elow. port alternate function 4 75 p6.0 pwmo0 pwm channel 0 output 5 76 p6.1 pwmo1 pwm channel 1 output 32 28 p6.2 pwmo2 pwm channel 2 output 33 29 p6.3 pwmo3 pwm channel 3 output 6 77 p6.4 pwmc0 pwm0 clock input 38 37 p6.5 pwmc1 pwm1 clock input 3 74 p6.7 stadc external a/d conversion start signal (active low) 59 60 a vref+ a/d +reference - input. when selected, supplies the positive reference voltage for the a/d converter. this signal should be isolated from digital v cc to prevent n oise from affecting a/d measurements. 58 59 a vref - a/d - reference - input. when selected, supplies the negative reference voltage for the a/d converter. this signal should be isolated from digital gnd to prevent noise from affecting a/d measurements. 61 63 a vcc analog v cc 60 61 a vss analog ground 3, 21 22, 30 33, 36 43, 44 62, 73 78, 79 nc nc - reserved. these pins should not be connected. they are reserved for use with future devices in this family.
ds87c55 0 7 of 50 compatibility the DS87C550 is a fully static, cmos 8051 - compatible microcontroller designed for high performance. while remaining familiar to 8051 family users, it has many new features. with very few exceptions, software written for existing 8051 - based systems works without modification on the DS87C550. t he exception is critical timing since the high speed micro performs its instructions much faster than the original for any given crystal selection. the DS87C550 runs the standard 8051 family instruction set and is pin - compatible with existing devices with similar features in plcc or qfp packages. the DS87C550 provides three 16 - bit timer/counters, two full - duplex serial ports, 256 bytes of direct ram plus 1 kbyte of extra movx ram. i/o ports have the same operation as a standard 8051 product. timers will d efault to a 12 clock per cycle operation to keep their timing compatible with original 8051 family systems. however, timers are individually programmable to run at the new 4 clocks per cycle if desired. the DS87C550 provides several new hardware features implemented by new special function registers. a summary of all sfrs is provided in table 2. performance overview the DS87C550 features a high - speed, 8051 - compatible core. higher speed comes not just from increasing the clock frequency, but from a newer , more efficient design. this updated core does not have the dummy memory cycles that are present in a standard 8051. a conventional 8051 generates machine cycles using the clock frequency divided by 12. in the DS87C550, the same machine cycle takes 4 clo cks. thus the fastest instruction, 1 machine cycle, executes three times faster for the same crystal frequency. note that these are identical instructions. the majority of instructions on the DS87C550 will see the full 3 to 1 speed improvement. however, s ome instructions will achieve between 1.5 and 2.4 to 1 improvement. regardless of specific performance improvements, all instructions are faster than the original 8051. the numerical average of all opcodes gives approximately a 2.5 to 1 speed improvement. improvement of individual programs will depend on the actual mix of instructions used. speed sensitive applications would make the most use of instructions that are 3 times faster. however, the sheer number of 3 to 1 improved opcodes makes dramatic speed improvements likely for any arbitrary combination of instructions. these architecture improvements and the sub - micron cmos design produce a peak instruction cycle in 121 ns (8.25 mips). the dual data pointer feature also allows the user to eliminate waste d instructions when moving blocks of memory. instruction set summary all instructions in the DS87C550 perform exactly the same functions as their 8051 counterparts. their effect on bits, flags, and other status functions is identical. however, the timing of each instruction is different. this applies both in absolute and relative number of clocks. for absolute timing of real - time events, the timing of software loops can be calculated using a table in the high speed micro user?s guide. however, counter/ti mers default to run at the old 12 clocks per increment. in this way, timer - based events occur at the standard intervals with software executing at higher speed. timers optionally can run at 4 clocks per increment to take advantage of faster processor opera tion. the relative time of two instructions might be different in the new architecture than it was previously. for example, in the original architecture, the ?movx a, @dptr? instruction and the ?mov direct, direct?
ds87c55 0 8 of 50 instruction used two machine cycles or 2 4 oscillator cycles. therefore, they required the same amount of time. in the DS87C550, the movx instruction takes as little as two machine cycles or eight oscillator cycles, but the ?mov direct, direct? uses three machine cycles or 12 oscillator cycles. w hile both are faster than their original counterparts, they now have different execution times. this is because the DS87C550 usually uses one instruction cycle for each instruction byte. examine the timing of each instruction for familiarity with the chang es. note that a machine cycle now requires just 4 clocks, and provides one ale pulse per cycle. many instructions require only one cycle, but some require five. in the original architecture, all were one or two cycles except for mul and div. refer to the h igh speed micro user?s guide for details and individual instruction timing. special function registers special function registers (sfrs) control most special features of the DS87C550. this allows the DS87C550 to have many new features but use the same ins truction set as the 8051. when writing software to use a new feature, an equate statement defines the sfr to an assembler or compiler. this is the only change needed to access the new function. the DS87C550 duplicates the sfrs contained in the standard 80c 52. table 2 shows the register addresses and bit locations. many are standard 80c52 registers. the high speed micro user?s guide describes all sfrs in full detail. special function register location: table 2 register bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit 0 address port0 p0.7 p0.6 p0.5 p0.4 p0.3 p0.2 p0.1 p0.0 80h sp 81h dpl 82h dph 83h dpl1 84h dph1 85h dps id1 id0 tsl - - - - sel 86h pcon smod_0 smod0 ofdf ofde gf1 gf0 stop idle 87h tcon tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 88h tmod gate c/ t m1 m0 gate c/ t m1 m0 89h tl0 8ah tl1 8bh th0 8ch th1 8dh ckcon wd1 wd0 t2m t1m t0m md2 md1 md0 8eh port1 p1.7 p1.6 p1.5 p1.4 p1.3 p1.2 p1.1 p1 .0 90h rcon - - - - ckrdy rgmd rgsl bgs 91h scon0 sm0/fe_0 sm1_0 sm2_0 ren_0 tb8_0 rb8_0 ti_0 ri_0 98h sbuf0 99h pmr cd1 cd0 swb ctm 4x/ 2x aleoff dem1 dme0 9fh port2 p2.7 p2.6 p2.5 p2.4 p2.3 p2.2 p2.1 p2.0 a0h saddr0 a1h saddr1 a2h ie ea ead es1 es0 et1 ex1 et0 ex0 a8h cmpl0 a9h cmpl1 aah cmpl2 abh cptl0 ach cptl1 adh cptl2 aeh cptl3 afh port3 p3.7 p3.6 p3.5 p3.4 p3.3 p3.2 p3.1 p3.0 b0h adco n1 strt/bsy eoc cont/ss adex wcq wcm adon wcio b2h
ds87c55 0 9 of 50 special function register location: table 2 cont?d register bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 address adcon2 outcf mux2 mux1 mux0 aps3 aps2 aps1 aps0 b3h admsb b4h adlsb b5h winh i b6h winlo b7h ip - pad ps1 ps0 pt1 px1 pt0 px0 b8h saden0 b9h saden1 bah t2con tf2 exf2 rclk tclk exen2 tr2 c/ t2 rl2 beh t2mod - - - - - - t2oe dcen bfh port4 cmt1 cmt0 cmsr5 cmsr4 cmsr3 cmsr2 cmsr1 cmsr0 c0h romsize - - - - - rms2 rms1 rms0 c2h port5 adc7 adc6 adc5 adc4 adc3 adc2 adc1 adc0 c4h status pip hip lip - spta1 spra1 spta0 spra0 c5h ta c7h t2ir - cm2f cm1f cm0f ie5/cf3 ie4/cf2 ie3/cf1 ie2/cf0 c8h cmph0 c9h cmph1 cah cmph2 cbh cpth0 cch cpth1 cdh cpth2 ceh cpth3 cfh psw cy ac f0 rs1 rs0 ov f1 p d0h pw0fg d2h pw1fg d3h pw2fg d4h pw3fg d5h pwmadr adrs - - - - - pwe1 pwe0 d6h scon1 sm0/fe_1 sm1_1 sm2_1 ren_1 tb8_1 rb8_1 ti_1 ri_1 d8h sbuf1 d9h pwm0 dch pwm1 ddh pwm2 deh pwm3 dfh acc e0h pw01cs pw0s2 pw0s1 pw0s0 pw0en pw1s2 pw1s1 pw1s0 pw1en e1h pw23cs pw2 s2 pw2s1 pw2s0 pw2en pw3s2 pw3s1 pw3s0 pw3en e2h pw01con pw0f pw0dc pw0oe pw0t/c pw1f pw1dc pw1oe pw1t/c e3h pw23con pw2f pw2dc pw2oe pw2t/c pw3f pw3dc pw3oe pw3t/c e4h rloadl e6h rloadh e7h eie et2 ecm2 ecm1 ecm0 ex5/ec3 ex4/ec2 ex3/e x1 ex2/ec0 e8h t2sel tf2s tf2bs - tf2b - - t2p1 t2p0 eah ctcon ct3 ct3 ct2 ct2 ct1 ct1 ct0 ct0 ebh tl2 ech th2 edh setr tgff1 tgff0 cms5 cms4 cms3 cms2 cms1 cms0 eeh rstr cmte1 cmte0 cmr5 cmr4 cmr3 cmr2 cmr1 cmr0 efh b f0h port6 stadc - pwmc1 pwmc0 pwmo3 pwmo2 pwmo1 pwmo0 f1h eip pt2 pcm2 pcm1 pcm0 px5/pc3 px4/pc2 px3/pc1 px2/pc0 f8h wdcon smod_1 por epfi pfi wdif wtrf ewt rwt ffh
ds87c55 0 10 of 50 memory res ources as is convention within the 8051 architecture, the DS87C550 uses three memory areas. the total memory configuration of the DS87C550 is 8 kbytes of eprom, 1 kbyte of data sram and 256 bytes of scratchpad or direct ram. the 1 kbyte of data space sram is read/write accessible and is memory mapped. this on - chip sram is reached by the movx instruction. it is not used for executable memory. the scratchpad area is 256 bytes of register mapped ram and is identical to the ram found on the 80c52. there is no conflict or overlap among the 256 bytes and the 1k as they use different addressing modes and separate instructions. operational consideration the erasure window of the windowed clcc package should be covered without regard to the programmed/unprogrammed state of the eprom. otherwise, the device may not meet the ac and dc parameters listed in the datasheet. program memory on - chip rom begins at address 0000h and is contiguous through 1fffh (8k). exceeding the maximum address of on - chip rom will cause the DS87C550 to access off - chip memory. however, the maximum on - chip decoded address is selectable by software using the romsize feature. software can cause the DS87C550 to behave like a device with less on - chip memory. this is beneficial when overlapping exte rnal memory, such as flash, is used. with the romsize feature the maximum on - chip memory size is dynamically variable. thus a portion of on - chip memory can be removed from the memory map to access off - chip memory, then restored to access on - chip memory. i n fact, all of the on - chip memory can be removed from the memory map, allowing the full 64k memory space to be addressed as off - chip memory. rom addresses that are larger than the selected maximum are automatically fetched from outside the part via ports 0 & 2. a depiction of the rom memory map is shown in figure 2. the romsize register is used to select the maximum on - chip decoded address for rom. bits rms2, rms1, rms0 (romsize2:0) have the following effect. maximum on - chip rms2 rms1 rms0 rom addres s 0 0 0 0k 0 0 1 1k (0h - 03ffh) 0 1 0 2k (0h - 07ffh) 0 1 1 4k (0h - 0fffh) 1 0 0 8k (0h ? 1fffh) default 1 0 1 invalid - reserved 1 1 0 invalid - reserved 1 1 1 invalid - reserved the reset default condition is a maximum on - chip rom address of 8 kbytes. thus no action is required if this feature is not used. therefore when accessing external program memory, the first 8 kbytes would be inaccessible. to select a smaller effective rom size, software must alter bits rms2 - rms0. altering these bits r equires a timed access procedure as explained below. the romsize register should be manipulated from a safe area in the program memory map. this is a program memory address that will not be affected by the change. for example, do not select a maximum rom size of 4k from an internal rom address of 5k. this would cause the current address to switch from internal to external and potentially cause invalid operation. similarly, do not instantly switch from external to internal memory.
ds87c55 0 11 of 50 for example, do not select a maximum rom address of 8k from an external rom address of 7k (if romsize is set for 4k or less). off - chip memory is accessed using the multiplexed address/data bus on p0 and the msb address on p2. while serving as a memory bus, these pins are not avai lable as i/o ports. this convention follows the standard 8051 method of expanding on - chip memory. off - chip rom access also occurs if the ea pin is logic 0. ea overrides all bit settings. the psen signal will go active (low) to serve as a chip enable or out put enable when ports 0 & 2 fetch from external rom. rom memory map figure 2 data memory unlike many 8051 derivatives, the DS87C550 contains additional on - chip data memory. in addition to the standard 256 bytes of data ram accessed by direct instructi ons, the DS87C550 contains another 1 kbyte of data memory that is accessed using the movx instruction. although physically on - chip, software treats this area as though it was located off - chip. the 1 kbyte of sram is permanently located from address 0000h to 03ffh (when enabled). access to the on - chip data ram is optional under software control. when enabled by software, the data sram is between 0000h and 03ffh. any movx instruction that uses this area will go to the on - chip ram while enabled. movx address es greater than 1k automatically go to external memory through ports 0 & 2. when disabled, the 1k memory area is transparent to the system memory map. any movx directed to the space between 0000h and ffffh goes to the expanded bus on ports 0 & 2. this als o is the default condition. this default allows the DS87C550 to drop into an existing system that uses these addresses for other hardware and still have full compatibility. the on - chip data area is software selectable using two bits in the power manageme nt register (dme1, dme0). this selection is dynamically programmable. thus access to the on - chip area becomes transparent to reach off - chip devices at the same addresses. these bits have the following operation:
ds87c55 0 12 of 50 data memory access control table 3 dme1 d me0 data memory address memory function 0 0 0000h - ffffh external data memory *default condition 0 1 0000h - 03ffh 0400h - ffffh internal sram data memory external data memory 1 0 reserved reserved 1 1 0000h - 03ffh 0400h ? fffbh fffch fffdh - ffffh internal sram data memory reserved - no external access read access to the status of lock bits reserved notes on the status byte read at fffch with dme1, 0 = 1, 1: bits 2 - 0 reflect the programmed status of the security lock bits lb2 - lb0. they are indivi dually set to a logic 1 to correspond to a security lock bit that has been programmed. these status bits allow software to verify that the part has been locked before running if desired. the bits are read only. stretch memory cycle the DS87C550 allows so ftware to adjust the speed of off - chip data memory and/or peripheral access by adjusting the number of machine cycles it takes to execute a movx instruction. the micro is capable of performing the movx in as little as two machine cycles. the on - chip sram uses this speed and any movx instruction directed internally always uses two cycles. however, the time for the instruction execution can be stretched for slower interface to external devices. this allows access to both fast memory and slow memory or perip herals with no glue logic. even in high - speed systems, it may not be necessary or desirable to perform off - chip data memory access at full speed. in addition, there are a variety of memory mapped peripherals such as lcds or uarts that are slow and require more time to access. the stretch movx function is controlled by the md2 - md0 sfr bits in the clock control register (ckcon.2 - 0) as described below. they allow the user to select a stretch value between 0 and 7. a stretch of 0 will result in a two - machine c ycle movx instruction. a stretch of 7 will result in a movx of 12 machine cycles. software can dynamically change the stretch value depending on the particular memory or peripheral being accessed. the default stretch of one allows the use of commonly avail able srams without dramatically lengthening the memory access times. note that the stretch movx function is slightly different in the DS87C550 than in earlier members of the high - speed microcontroller family. in all members of this family (including the d s87c550), increasing the stretch value from 0 to 1 causes setup and hold times to be increased by 1 crystal clock each. in older members of the family, there is no further change in setup and hold times regardless of the number of stretch cycles selected. in the DS87C550 however, when a stretch value of 4 or above is selected, the timing of the interface changes dramatically to allow for very slow peripherals. first, the ale signal is increased by 1 machine cycle. this increases the address setup time int o the peripheral by this amount. next, the address is held on the bus for one additional machine cycle, increasing the address hold time by this amount. the read or write signal is then increased by a machine cycle. finally, the data is held on the bus (fo r a write cycle) one additional machine cycle, thereby increasing the data hold time by this amount. for every stretch value greater than 4, the setup and hold times remain constant, and only the width of the read or write signal is increased. on reset, t he stretch value will default to a 1, resulting in a three - cycle movx for any external access. therefore, the default off - chip ram access is not at full speed. this is a convenience to existing designs that may not have fast ram in place. internal sram acc ess is always at full speed regardless of the
ds87c55 0 13 of 50 stretch setting. when maximum speed is desired, software should select a stretch value of 0. when using very slow ram or peripherals, the application software can select a larger stretch value. note that this affects data memory accesses only and that there is no way to slow the accesses to program memory other than to use a slower crystal (or external clock). the specific timing of the variable speed stretch movx is provided in the electrical specifications s ection of this data sheet. table 4 shows the resulting movx instruction timing and the read or write strobe widths for each stretch value. data memory cycle stretch values table 4 ckcon.2 - 0 movx machine rd or wr s trobe width m2 m1 m0 cycles in machine cycles 0 0 0 2 (forced internal) 0.5 0 0 1 3 ( default external) 1 0 1 0 4 2 0 1 1 5 3 1 0 0 9 4 1 0 1 10 5 1 1 0 11 6 1 1 1 12 7 dual data pointer with inc/dec the DS87C550 contains several new, unique feat ures that are associated with the data pointer register. in the original 8051 architecture, the dptr was a 16 - bit value that was used to address off - chip data ram or peripherals. to improve the efficiency of data moves, the DS87C550 contains two data poin ter registers (dptr0 and dptr1). by loading one dptr with the source address and the other with the destination address, block data moves can be made much more efficient. since dptr0 is located at the same address as the single dptr in the original 8051 a rchitecture, code written for the original architecture will operate normally on the DS87C550 with no modification necessary. the second data pointer, dptr1 is located at the next two register locations (up from dptr0) and is selected using the data point er select bit sel (dps.0). if sel = 0, then dptr0 is the active data pointer. conversely, if sel = 1, then dptr1 is the active data pointer. any instruction that reference the dptr (ex. movx a, @ dptr) refers to the active data pointer as determined by the sel bit. since the bit adjacent to sel in the dps register is not used, the fastest means of changing the sel (and thereby changing the active data pointer) is with an inc instruction. each inc dps instruction will toggle the active data pointer. unlike the standard 8051, the DS87C550 has the ability to decrement as well as increment the data pointers without additional instructions. when the inc dptr instruction is executed, the active dptr is incremented or decremented according to the id1, id0 (dps.7 - 6 ), and sel (dps.0) bits as shown. the inactive dptr is not affected. id1 id0 sel result of inc dptr x 0 0 increment dptr0 x 1 0 decrement dptr0 0 x 1 increment dptr1 1 x 1 decrement dptr1
ds87c55 0 14 of 50 another useful feature of the device is its ability to automa tically switch the active data pointer after a dptr - based instruction is executed. this feature can greatly reduce the software overhead associated with data memory block moves, which toggle between the source and destination registers. when the toggle sel ect bit (tsl;dps.5) is set to 1, the sel bit (dps.0) is automatically toggled every time one of the following dptr related instructions are executed: inc dptr mov dptr, #data16 movc a, @a+dptr movx a, @dptr movx @dptr, a as a brief example, if tsl is set to 1, then both data pointers can be updated with the two instruction series shown. inc dptr inc dptr with tsl set, the first increment instruction increments the active data pointer, and then causes the sel bit to toggle making the other dptr active. t he second increment instruction increments the newly active data pointer and then toggles sel to make the original data pointer active again. clock control and power management the DS87C550 includes a number of unique features that allow flexibility in se lecting system clock sources and operating frequencies. to support the use of inexpensive crystals while allowing full - speed operation, a clock multiplier is included in the processor?s clock circuit. also, along with the idle and power - down (stop) modes of the standard 80c52, the DS87C550 provides a new power management mode. this mode allows the processor to continue instruction execution at a very low speed to significantly reduce power consumption (below even idle mode). the DS87C550 also features seve ral enhancements to stop mode that make this extremely low power mode more useful. each of these features is discussed in detail below. system clock control as mentioned previously, the DS87C550 contains special clock control circuitry that simultaneously provides maximum timing flexibility and maximum availability and economy in crystal selection. there are two basic functions to this circuitry: a frequency multiplier and a clock divider. by including a frequency multiplier circuit, full - speed operation o f the processor may be achieved with a lower frequency crystal. this allows the user the ability to choose a more cost - effective and easily obtainable crystal than would be possible otherwise. the logical operation of the system clock divide control funct ion is shown in figure 3. the clock signal from the crystal oscillator (or external clock source) is provided to the frequency multiplier module, to a divide - by - 256 module, and to a 3 - to - 1 multiplexer. the output of this multiplexer is considered the syste m clock . the system clock provides the time base for timers and internal peripherals, and feeds the cpu state clock generation circuitry. this circuitry divides the system clock by 4, and it is the four phases of this clock that make up the instruction exe cution clock. the four phases of a single instruction execution clock are also called a single machine cycle clock . instructions in the DS87C550 all use the machine cycle as the fundamental unit of measure and are executed in from one to five of these mach ine cycles. it is important to note the distinction between the system clock and the machine cycle clock as they are often confused, creating errors in timing calculations. in performing timing calculations, it is
ds87c55 0 15 of 50 important to remember that all timers and internal peripherals operate off of some version of the system clock while the instruction execution engine always operates off of the machine cycle clock. when cd1 and cd0 (pmr.7 - 6) are both cleared to a logic 0, the multiplexer selects the frequency mu ltiplier output. the frequency multiplier can supply a clock that is 2 times or 4 times the frequency of the incoming signal. if the times - 4 multiplier is selected by setting the 4x/ 2x bit (pmr.3) to 1, for example, the incoming signa l is multiplied by 4. this 4x clock is then passed through the multiplexer, and then output to the cpu state clock generation circuits. these cpu state clock generation circuits always divide the incoming clock by 4 to arrive at the four states (called a m achine cycle) necessary for correct processor operation. in this example, since the clock multiplier multiplies by four and the cpu state clock generation circuit divides by 4, the apparent instruction execution speed is 1 external (or crystal oscillator) clock per instruction. if the 4x/ 2x bit is set to 0, then the apparent instruction execution speed is 2 clocks per instruction. it is important to note that the clock multiplier function does not increase the maximum clock (system cl ock) rate of the device. the DS87C550 operates at a maximum system clock rate of 33 mhz. therefore, the maximum crystal frequency is 8.25 mhz when a clock multiplier of 4 is used, and is 16.5 mhz when a clock multiplier of 2 is used. the purpose of the clo ck multiplier is to simplify crystal selection when maximum processor operation is desired. specifically, an 8.25 mhz fundamental mode, at cut, parallel resonant crystal is much easier to obtain than the same crystal at 33 mhz. most crystals in that freque ncy range tend to be third overtone type. as illustrated in figure 3, the programmable clock divide control bits cd1 - cd0 (pmr.7 - 6) provide the processor with the ability to adapt to different crystal (and external clock) frequencies and also to allow extr eme division of the incoming clock providing lower power operation when desired. the effect of these bits is shown in table 5. cd1:cd0 operation table 5 cd1 cd0 instruction execution 0 0 frequency multiplier (1 or 2 clocks per machine cycle) 0 1 reserve d 1 0 clock divided by 4 (4 clocks per machine cycle) default 1 1 clock divided by 1024 (1024 clocks per machine cycle) besides the ability to use a multiplied clock signal, the normal mode of operation, i.e. the reset default condition (cd1 = 1, cd0 = 0) passes the incoming crystal or external oscillator clock signal straight through as the system clock. because of the cpu state clock generation circuitry?s normal divide - by - 4 function, the default execution speed of the DS87C550?s basic instruction is one - fourth the clock frequency. the selection of instruction cycle rate takes effect after a delay of one machine cycle. note that the clock divider choice applies to all functions including timers. since baud rates are altered, it may be difficult to con duct serial communication while in divide - by - 1024 mode. this is simplified by the use of switchback mode (described later) included on the DS87C550.
ds87c55 0 16 of 50 clock switching restrictions to ensure clean ?glitch - free? switching of the system clock and to ensure tha t all clocks are running and stable before they are used, there are minor restrictions on accessing the clock selection bits cd1:0 and the 4x/ 2x bit. one restriction is that any change in the cd1 and cd0 bits from a condition other th an a 1 0 state (i.e., clock divided by 4 mode) must pass through the divide - by - 4 state before proceeding to the desired state. as a specific example, if the clock divisor bits are set to use the frequency multiplier in 4x mode, no other clock setting is po ssible until after the cd1:0 bits are set to divide - by - 4 mode. after setting clock divided - by - 4 mode, then clock divided by 1024 can be selected by setting cd1 and cd0 to ?11b?. any attempt to change these bits to a disallowed state will be ignored by the hardware. there are also some minor restrictions when changing from one clock multiplier to another. changing the clock multiplier can only be performed when the crystal multiplier enable bit ctm (pmr.4) is set to 0. this bit disables the clock multiplica tion function. however, the ctm bit can only be changed when cd1 and cd0 are set to divide - by - 4 mode (i.e., ?10b?) and the ring mode (rngmd = rcon.2) bit is 0 (discussed later). changing the clock multiplication factor also requires that the new frequency be stable prior to effecting the change. the sfr bit ckrdy (rcon.3) indicates the state of the stabilization timeout. setting the ctm bit to a 0 from a 1 disables the clock multiplier function, automatically clears the ckrdy bit, and starts the stabilizat ion timeout. system clock control figure 3 during the stabilization period, ckrdy will remain low, and software will be unable to set the cd1:0 bits to select the frequency multiplier. after the stabilization delay, ckrdy will be set to a 1 by hardwa re. note that this bit cannot be set to 1 by software. after hardware sets ckrdy bit, then the cd1:0 bits can be set to use the clock multiplier function. however, before changing cd1:0, the 4x/ 2x bit must be set to the desired state. following this, the ctm bit must be set to 1 to enable the crystal multiplier. finally the cd1:0 bits may be set to select the crystal multiplier function. by following this procedure, the processor is guaranteed to receive a stable, glitch - free clock. o scillator - fail detect the DS87C550 contains a unique safety mechanism called an on - chip oscillator - fail detect circuit. when enabled, this circuit causes the processor to be reset if the oscillator frequency falls below tbd khz. the processor is held in re set until the oscillator frequency rises above tbd khz. in operation, this circuit can provide a backup for the watchdog timer. normally, the watchdog timer is initialized so that it will timeout and will cause a processor reset in the event that the proce ssor loses control. this works perfectly as long as there is a clock from the crystal or external oscillator, but if this clock fails, there is the potential for the processor to fail in an uncontrolled and possibly undesirable state. with the use of the o scillator - fail detect circuit, the processor will be forced to a known state (i.e., reset) even if the oscillator stops.
ds87c55 0 17 of 50 the oscillator - fail detect circuitry is enabled by software setting the enable bit ofde (pcon.4) to a 1. please note that software must use a ?timed access? procedure (described later) to write to this bit. there is an oscillator - fail detect flag, ofdf (pcon.5), that is set to a 1 by the hardware when it detects an oscillator failure. the processor will be forced into a reset state when this occurs if enabled by ofde. the oscillator - fail detect flag can only be cleared to a 0 by a power - up reset or by software. it should be noted that the oscillator - fail detect circuitry is not disabled by entering stop mode. there fore, the user must ens ure that this feature is disabled before entering stop mode. power management mode (pmm) power management mode offers a complete scheme of reduced internal clock speeds that allow the cpu to run software but to use substantially less power. normally, duri ng default operation, the DS87C550 uses 4 clocks per machine cycle. thus the instruction cycle (machine cycle clock) rate is clock/4. at 33 mhz crystal speed, the instruction cycle speed is 8.25 mhz. in pmm the microcontroller operates, but from an interna lly divided version of the clock source. this creates a lower power state without external components. as shown in figure 3, the system clock may be selected to use the crystal (or external oscillator) frequency divided by 256. this produces a machine cycl e that consists of the crystal frequency divided by 1024, which is considered power management mode (pmm). with the processor executing instructions at this much lower rate, a significant amount of power is saved. software is the only mechanism to invoke the pmm. table 6 illustrates the instruction cycle rate in pmm for several common crystal frequencies. since power consumption is a direct function of operating speed, pmm runs very slowly and provides the lowest power consumption without stopping the cpu . this is illustrated in table 7. machine cycle rate table 6 full operation pmm crystal speed (4 clocks per machine cycle) (1024 clocks per machine cycle) 11.0592 mhz 2.765 mhz 10.8 khz 16 mhz 4.0 mhz 15.6 khz 25 mhz 6.25 mhz 24.4 khz 33 mhz 8.25 mhz 32.2 khz operating current estimates in pmm table 7 full operation pmm crystal speed (4 clocks per machine cycle) (1024 clocks per machine cycle) 11.0592 mhz 13.1 ma 4.8 ma 16 mhz 17.2 ma 5.6 ma 25 mhz 25.7 ma 7.0 ma 33 mhz 32.8 ma 8.2 ma note that pmm provides a lower power condition than idle mode. this is because in idle, all clocked functions such as timers run at a rate of crystal divided by 4. since wakeup from pmm is as fast as or
ds87c55 0 18 of 50 faster than wakeup from id le, and since pmm allows the cpu to continue to execute instructions (even if doing nops), there is little reason to use idle in new designs. switchback one of the other unique features included on the DS87C550 is switchback. simply, switchback when enabl ed will allow serial ports and interrupts to automatically switch back from divide - by - 1024 (pmm) to divide - by - 4 (standard speed operation). this feature makes it very convenient to use the power management mode in real time applications. of course to retur n to a divide - by - 4 clock rate from divide - by - 1024 pmm, software can simply select the cd1 & cd0 clock control bits to the 4 clocks per cycle state. however, the DS87C550 provides hardware alternatives for automatic switchback to standard speed operation. the switchback feature is enabled by setting the sfr bit swb (pmr.5) to a 1. once it is enabled and when pmm is selected, there are two possible events that can cause an automatic switchback to divide - by - 4 mode. first, if an interrupt occurs and is set so that it will be acknowledged, this event will cause the system clock to revert from pmm to divide - by - 4 mode. for example, if int0 is enabled then switchback will occur on int0 . however, if int0 is not enabled, then activity on int0 will not cause switchback to occur. a switchback can also occur when an enabled uart detects the start bit indicating the beginning of an incoming serial character or when the sbuf register is loaded i nitiating a serial transmission. note that a serial character?s start bit does not generate an interrupt. this occurs only on reception of a complete serial word. the automatic switchback on detection of a start bit allows hardware to correct baud rates in time for a proper serial reception or transmission. so with switchback enabled and a serial port enabled, the automatic switch to normal speed operation occurs automatically in time to receive or transmit a complete serial character as if nothing special had happened. once switchback causes the processor to make the transition back to divide - by - 4 mode, software must modify sfr bits cd1 & cd0 to re - enter power management mode. however, if a serial port is in the process of transmitting or receiving a chara cter, then this change back to pmm will not be allowed as the hardware prevents a write to cd1 & cd0 during any serial port activity. since the reception of a serial start bit or an interrupt priority lockout is normally undetectable by software in an 805 1, the status register features several new flags that are useful. these are described below. status information in the status register assists decisions about switching into pmm. this register contains information about the level of active interrupts and the activity on the serial ports. the DS87C550 supports three levels of interrupt priority. these levels are power - fail, high, and low. status bits stat.7 - 5 indicate the service status of each level. if pip (power - fail interrupt priority; status.7) is a 1, then the processor is servicing this level. if either hip (high interrupt priority; status.6) or lip (low interrupt priority; status.5) is high, then the corresponding level is in service. software should not rely on a lower priority level interrupt s ource to remove pmm (switchback) when a higher level is in service. check the current priority service level before entering pmm. if the current service level locks out a desired switchback source, then it would be advisable to wait until this condition cl ears before entering pmm.
ds87c55 0 19 of 50 alternately, software can prevent an undesired exit from pmm by entering a low priority interrupt service level before entering pmm. this will prevent other low priority interrupts from causing a switchback. status also contains information about the state of the serial ports. serial port zero receive activity (spra0; status.0) indicates a serial word is being received on serial port 0 when this bit is set to a 1. serial port zero transmit activity (spta0; status.1) indicates tha t the serial port is still shifting out a serial transmission. status.2 (spra1) and status.3 (spta1) provide the same information for serial port 1, respectively. while one of these bits is set, hardware prohibits software from entering pmm (cd1 & cd0 are write - protected) since this would corrupt the corresponding serial transmissions. idle mode setting the lsb of the power control register (pcon.0) invokes the idle mode. idle will leave internal clocks, serial ports and timers running. power consumption d rops because memory is not being accessed and instructions are not being executed. since clocks are running, the idle power consumption is a function of crystal frequency. it should be approximately ? of the operational power at a given frequency. the cpu can exit the idle state with any interrupt or a reset. idle is available for backward software compatibility. however, due to improvements over the original architecture, the processor?s power consumption can be reduced to below idle levels by invoking pow er management mode (pmm) and running nops. stop mode setting bit 1 of the power control register (pcon.1) invokes the stop mode. stop mode is the lowest power state (besides power - off) since it turns off all internal clocking. the i cc of a standard stop m ode is approximately 1 ua (but is specified in the electrical specifications). all processor operation ceases at the end of the instruction that sets pcon.1. the cpu can exit stop mode from an external interrupt or a reset condition. internally generated interrupts (timer, serial port, etc.) are not useful since they require clocking activity. band - gap select the DS87C550 provides two enhancements to the stop mode. as described below, the DS87C550 provides a band - gap reference to determine power - fail int errupt and reset thresholds. the default state is that the band - gap reference is off while in stop mode. this mode allows the extremely low - power state mentioned above. a user can optionally choose to have the band - gap enabled during stop mode. with the ba nd - gap reference enabled, pfi and power - fail reset are functional and are valid means for leaving stop mode. this allows software to detect and compensate for a brownout or power supply sag, even when in stop mode. in stop mode with the band - gap enabled, i cc will be approximately 100 ua compared with 1 ua with the band - gap off. if a user does not require a power - fail reset or interrupt while in stop mode, the band - gap can remain disabled. only the most power - sensitive applications should turn off the band - gap, as this results in an uncontrolled power - down condition. the control of the band - gap reference is located in the ring oscillator control register (rcon). setting bgs (rcon.0) to a 1 will keep the band - gap reference enabled during stop mode. the defau lt or reset condition is with the bit at a logic 0. this results in the band - gap being off during stop mode. note that this bit has no control of the reference during full power, pmm, or idle modes.
ds87c55 0 20 of 50 ring oscillator the second enhancement to stop mode on t he DS87C550 allows an additional power saving option while also making stop easier to use. this is the ability to start instantly when exiting stop mode. it is the internal ring oscillator that provides this feature. this ring can be a clock source when ex iting stop mode in response to an interrupt. the benefit of the ring oscillator is as follows. entering stop mode turns off the crystal oscillator and all internal clocks to save power. when exiting stop mode, the external crystal may require up to 10 ms to begin oscillating again. the DS87C550 can eliminate that delay through the use of the internal ring oscillator, resuming operation in less than 100 ns when exiting stop mode. if a user selects the ring to provide the start - up clock and the processor rem ains running, hardware will automatically switch to the crystal once a power - on reset interval (65536 crystal clocks) has expired. the ring oscillator runs at approximately 4 mhz but will not be a precise value. do not conduct real - time precision operatio ns (including serial communication) during this ring period. the default state is to exit stop mode without using the ring oscillator, so action to enable the ring must be taken before entering stop mode. the ring select (rgsl) bit in the rcon register (r con.1) controls this function. when rgsl = 1, the cpu will use the ring oscillator to exit stop mode quickly. as mentioned above, the processor will automatically switch from the ring to the crystal after a delay of 65,536 crystal clocks. for a 3.57 mhz c rystal, this is approximately 18 ms. the processor sets a flag called ring mode (rgmd = rcon.2) that tells software that the ring is being used. the bit will be a logic 1 when the ring is in use. timed access protection selected sfr bits are critical to o peration, making it desirable to protect them against an accidental write operation. the timed access procedure prevents an errant processor from accidentally altering a bit that would seriously affect processor operation. the timed access procedure requir es that the write of a protected bit be preceded by the following instructions: mov 0c7h, #0aah mov 0c7h, #55h by writing an aah followed by a 55h to the timed access register (location c7h), the hardware opens a three - cycle window that allows software t o modify one of the protected bits. if the instruction that seeks to modify the protected bit is not immediately preceded by these instructions, the write will not take effect. the protected bits are: wdcon.6 por power - on reset flag wdcon.3 wdif watchdog interrupt flag wdcon.1 ewt watchdog reset enable wdcon.0 rwt reset watchdog timer rcon.0 bgs band - gap select romsize.2 rms2 program memory select bit 2
ds87c55 0 21 of 50 romsize.1 rms1 program memory select bit 1 romsize.0 rms0 program memory select bit 0 emi reduction one of the major contributors to radiated noise in an 8051 - based system is the toggling of ale. the DS87C550 allows software to disable ale when not used by setting the aleoff (pmr.2) bit to a 1. when aleoff = 1, ale will still toggle during an o ff - chip movx. however, ale will remain inactive when performing on - chip memory access. the default state is aleoff = 0 so ale normally toggles at a frequency of xtal/4. peripheral overview the DS87C550 provides several of the most commonly needed peripher al functions in microcomputer - based systems. new functions include a second serial port, power - fail reset, power - fail interrupt flag, and a programmable watchdog timer. in addition, the DS87C550 contains an analog - to - digital converter and four channels of pulse width modulation for industrial control and measurement applications. each of these peripherals is described below. more details are available in the high - speed micro data book (or its most recent addendum). serial ports the DS87C550 provides a seri al port (uart) that is identical to the 80c52. in addition, it includes a second hardware serial port that is a full duplicate of the standard one. this port optionally uses pins p1.6 (rxd1) and p1.7 (txd1). it has duplicate control functions included in n ew sfr locations. both ports can operate simultaneously but can be at different baud rates or even in different modes. the second serial port has similar control registers (scon1, sbuf1) to the original. the new serial port can only use timer 1 for timer generated baud rates. control for serial port 0 is provided by the scon0 register while its i/o buffer is sbuf0. the registers scon1 and sbuf1 provide the same functions for the second serial port. a full description of the use and operation of both seria l ports may be found in the ?high - speed microcontroller data book.? analog to digital converter the DS87C550 contains a 10 - bit successive approximation analog - to - digital converter. this converter provides eight multiplexed channels of analog input and all ows the user to select either an external or internal precision voltage reference to be used for the conversion process. the a/d converter provides true 9 - bit accuracy with a total error of less than 2 lsbs. the a/d converter may be disabled to conserve power by writing a 0 to the sfr adon bit (adcon1.1). at reset, this is the default condition, and the user must write a 1 to this bit prior to using the a/d converter. a/d converter input the a/d converter of the DS87C550 provides eight channels of analog input on device pins adc7 through adc0 (p5.7 - p5.0). the signals on these pins are input into an analog multiplexer. the magnitude (and polarity) of these signals is limited by the reference voltage used by the converter (see dc
ds87c55 0 22 of 50 specifications section). th is reference voltage may be selected to be either an internal band - gap voltage (vbg) or an external reference (avref+, avref - ). this selection is made by writing a 0 (uses internal reference vbg) or writing a 1 (uses external reference (avref+, avref - ) to the adrs bit (pwmadr.7). the default reset condition is for the internal reference to be selected. selecting a single analog signal for conversion is achieved by software writing the desired channel number (0 through 7) into sfr bits mux2 through mux0 bi ts of the a/d control register 2 (adcon2.6 - 4). the single output of the multiplexer is then provided to a sample and hold circuit that maintains a steady signal during the conversion process. a/d conversion process the a/d conversion process can be config ured for one - shot or continuous mode operation. for one - shot operation, the sfr bit cont/ss (adcon1.5) must be a 0. the conversion process is then initiated by software writing a 1 to the strt/bsy sfr bit (adcon1.7) if the adex (adcon1.4) bit is a 0. if th e adex bit is a 1, then the conversion is initiated by an active low signal on the external pin stadc (p6.7). if continuous mode is selected (cont/ss = 1), then the first conversion is initiated as described above, but another conversion will be automatica lly started at the completion of the previous conversion. once initiated, the conversion process requires 16 a/d clock periods (t aclk ) to complete. because of the dynamic nature of the converter, the a/d clock period can be no less that 1 us and no more t han 6.25 us. this requirement is expressed as follows: 1.0 us <= t aclk <= 6.25 us therefore any single conversion time can range from 16 us minimum to 100 us maximum, depending on the selected a/d clock frequency. the a/d clock frequency is a function o f the processor?s machine cycle clock and the a/d clock?s prescaler setting as shown by the following equation: t aclk = t mclk * (n+1) where n is the prescaler setting in aps3:0. the processor?s machine cycle clock period (t mclk ) is normally the external crystal (or oscillator) frequency multiplied by 4 (but can be affected by the cd1, cd0, and 4x/ 2x bits). the a/d clock period must be set by the user to ensure that it falls within the minimum and maximum values specified above. as an example, assume the processor?s crystal frequency is 33 mhz and that the processor is running in a standard divide - by - 4 mode. this means that the period of the processors machine cycle clock, i.e., t mclk , will be (1/33 mhz)*4 or 121.2 ns. if it is assume d that the application requires the fastest possible conversion time, then the desired t aclk is 1.0 us. the necessary prescale value can then be calculated as: n = (t aclk /t mclk ) - 1 therefore for this example, n = 7.25. since n must be an integer, the valu e of n must be 8 (rounded up to the next integer). this results in a conversion clock t aclk = 1.091 us. the prescaler value must be stored in sfr bits aps3 through aps0 (adcon2.3 - 0) to achieve the proper a/d clock. these bits default to 0 on a processor r eset, so they must be set as desired by the processor?s initialization software.
ds87c55 0 23 of 50 a/d output there are two sfr locations that contain the result of the a/d conversion process. they are admsb (most significant byte) and adlsb (least significant byte). the ad lsb byte always contains the 8 least significant bits of the 10 - bit result. the admsb can be configured in two different ways through the use of the sfr bit outcf (adcon2.7). if outcf is a 0, then admsb contains the 8 most significant bits of the 10 - bit co nversion (i.e., bits 9 - 2). if outcf is a 1, then admsb contains a/d output bits 9 - 8 (right justified). the upper 6 bits of the register are set to 0 in this case. the value stored in the output registers is given by the following equation: 1024 x ((vin - a vref - )/(avref+ - avref - )) this equation shows that the a/d conversion result is a 10 - bit binary number that represents what fraction of the available reference voltage the input signal is. as you can see with a reference voltage of 2.5 volts, the output h as a resolution of 2.44 millivolts. this shows that the reference voltage must be very well regulated to ensure satisfactory performance. it should be noted that the output of the a/d conversion process will be ?0000000000? for voltages from avref - to (avr ef - +1/2 lsb). in addition, ?1111111111? will be output for voltages from (avref+ - 3/2 lsb) to avref+. the DS87C550 offers a unique feature that allows the result of an a/d conversion to be compared with two user - defined values stored in the winhi and wi nlo registers. the results of this comparison will set or clear the wcm (adcon 1.2) bit, and this bit can be used as a qualifier to the a/d interrupt. this comparison is built into hardware so that this feature is performed without any burden on the softwa re, and a/d results that are not of particular interest to the application can be ignored. special function registers winhi and winlo are loaded by application software with 8 - bit numbers that are compared with the 8 msbs of the a/d result. these user - de fined numbers form a range of values, and the a/d result is evaluated to be inside or outside of this range. when wcio (adcon.1) is 0, then wcm is set if the a/d result is found to be inside the range. otherwise wcm is cleared. when wcio is a 1, then wcm is set if the a/d result is found to be outside the range. otherwise wcm is cleared. the state of the wcm bit is expressed by the following equation: wcm = wcio ? (winhi admsb) ? (winlo admsb) this equation precisely identifies the relationship between the window registers (winhi and winlo), the msb of the a/d conversion (admsb), and the wcio and wcm bits. however by observation, it is not particularly intuiti ve as to how this interaction works in a practical sense. if the user makes the assumption that the value stored in winhi is greater that the value stored in winlo (this is normally but not necessarily the case), then this equation can be simplified to the following two cases: for wcio = 0: wcm = (winhi > admsb) and (admsb 3 winlo) for wcio = 1: wcm = (winhi admsb) or (admsb < winlo) it is clear that these two equations now express the cases where the a/d result is inside the comparison window (wcio = 0) and outside the comparison window (wcio = 1). it is important to not e the and 3 symbols and account for the specific values that are included in the comparison. there is another sfr bit, wcq, that further defines the action taken when the wcm is set. if wcq is 0, then an a/d interrupt will occur (if enabled) regardless of the comparison results. when wcq is set to a
ds87c55 0 24 of 50 1, then an a/d interrupt will only occur if wcm is set (i.e., the a/d result comparison was true). this feature allows software to respond only to conditions that meet the programmed range. pulse width modul ation the DS87C550 contains four independent 8 - bit pulse width modulator (pwms) functions each with independently selectable clock sources. for more precise modulation operations, two 8 - bit pwm functions (pwm0 & pwm1 and/or pwm2 & pwm3) can be cascaded tog ether to form a 16 - bit pwm function. the pwm function is divided into three major blocks: a clock prescaler, a clock generator, and a pulse generator. a single prescaler provides selectable clocks of different frequencies to each of the four clock genera tor blocks. each clock generator is an 8 - bit reloadable counter that determines the repetition rate (frequency) of its associated pwm. each pulse generator pwm block is an 8 - bit timer clocked by the clock generator?s output. when this timer reaches zero, t he output of the pwm is set to 1. when the timer reaches the user selected pwm match value stored in sfr pwmx, the pwm output is cleared to 0. in this way, the frequency and duty cycle of the pwm is varied under software control. pwm prescaler the prescal er block of the pwm function accepts as a clock input the system clock provided to the cpu (and other peripherals), and divides it by 1, 4, 16, and 64. each of these clocks is available at the output of the prescaler, and is provided to all four of the pw m clock generator blocks. the actual clock used by the clock generator block is dependant on the setting of sfr bits pwxs2:0 (where x is the pwm channel number 0 - 3) located in the pw01cs or pw23cs registers. in addition to selecting one of the prescaler?s cpu clock divided outputs, setting pwxs2 to a 1 allows an external clock to be used as an input to the clock generators. the external clocks are input on device pins pwmc0 (p6.4 for pwm0 or pwm1) or pwmc1 (p6.5 for pwm2 or pwm3). like all other inputs to t he 8051, these inputs are synchronized by sampling them using the internal machine cycle clock. therefore these inputs must be of sufficient duration for the clock to sample them properly (i.e., 2 machine cycles). the complete functionality of the clock se lection sfr bits is as follows: prescaler output pwxs2:0 machine cycle_clock/1 000 machine cycle_clock/4 001 machine cycle_clock/16 010 machine cycle_clock/64 011 pwmcx (external) 1xx in determining the exact frequency output of the prescaler, it is important to note that the machine cycle clock provided to the prescaler is also software - selectable. the machine cycle clock can be the crystal (or oscillator frequency) divided by 1, 2, 4, or 1024 as determined by the cd1:0 and the 4x/ 2x sfr bits (see clock divide control section for details). pwm clock generator the clock generator blocks of the pwm modules are pre - loaded by software with an 8 - bit value, and this value determines the frequency or repetition rate of the pwm functio n. a value of 0 causes the selected
ds87c55 0 25 of 50 output of the prescaler to be passed directly to the pulse generator function (i.e., divide by 1). a value of ffh passes a clock to the pulse generator function that is the selected prescaler output divided by 256. in ge neral, the clock generators provide a divide by n+1 selectable repetition rate (i.e., frequency) for their pwm channel. each clock generator has an associated sfr that contains the 8 - bit reload value. these registers are called pw0fg, pw1fg, pw2fg, and pw 3fg (see sfr map for addresses). in addition, there is a frequency generator enable bit (pw0en, pw1en, pw2en, & pw3en) for each of the clock generator blocks that must be set to a 1 before these blocks will function. these bits are set to 0 after all reset s so software must set them to 1 to enable the pwm clocks. the output of the clock generator block is supplied to the input of the pulse generator block. pwm pulse generator the pulse generator block of the pwm function produces the pwm output signal on device pins pwmo0 (p6.0), pwmo1(p6.1), pwmo2 (p6.2), and pwmo3 (p6.3). each of these output bits has an enable bit: pw0oe (pw01con.5), pw1oe (pw01con.1), pw2oe (pw23con.5), and pw3oe (pw23con.1) that are cleared to 0 on all resets, and must be set to 1 by software before the pwms will output a signal. as described earlier, the pulse generator block is basically a free - running timer with a comparison register that is loaded with an 8 - bit value by software. the value of this register establishes the duty cy cle of the pwm function. the comparison values are stored in sfrs pwm0, pwm1, pwm2, and pwm3 for the respective pwm channels, and it is these values that determine the pulse duration. actually, in accessing these specific sfrs, software has access to bot h the compare registers and the timer registers of the pulse generator blocks. when the pwm timer/compare value select sfr bits pw0t/c (pw01con.4), pw1t/c (pw01con.0), pw2t/c (pw23con.4), and pw3t/c (pw23con.0) are cleared to 0, a read or write to the resp ective pwmx register accesses the compare register. when these bits are set to 1, a read or write accesses the timer value. with the use of these bits, the timers in the pulse generator sections of the pwm functions can be used as general purpose timers i f desired. when the free - running timer of the pulse generator block rolls over from ffh to 00h, the pwm?s output is set to a 1. as the timer continues to count up from 0, the output of the pwm is cleared to 0 when the timer value is equal to the compariso n register value. this cycle continues automatically without processor intervention until software or a reset changes some condition. the value of 0 in the comparison register is a special case of each pwm function. rather than allow a set and a reset of the pwm output bit, special hardware ensures that 0 will be output continuously if 0 is loaded into the compare register. there are other sfr bits that affect pwm operation for special modes. bits pw0dc (pw01con.6), pw1dc (pw01con.2), pw2dc (pw23con.6), a nd pw3dc (pw23con.2) cause the output of the respective pwm function to be a constant 1. this feature may be useful for driving a fixed dc voltage into any circuitry attached to the pwm output. bits pw0f (pw01con.7), pw1f (pw01con.3), pw2f (pw23con.7), and pw3f (pw23con.3) are flags that are set by the hardware when the respective pwm pulse generator timer rolls over from ffh to 0. these flags must be cleared by software to remove their set condition.
ds87c55 0 26 of 50 16 - bit mode for more precise pwm operations, two 8 - bit pwms may be combined into a single 16 - bit pwm function. by setting sfr bit pwe0 (pwmadr.0) to a 1, a new 16 - bit pwm0 function is formed from the 8 - bit pwm functions pwm0 (lsb) and pwm1 (msb). similarly, by setting pwe1 (pwmadr.1) to a 1, a new 16 - bit pwm1 function is formed from pwm2 (lsb) and pwm3 (msb). since each pair of pwms can be independently configured into a 16 - bit arrangement, the user has the option of having four 8 - bit pwm functions, two 8 - bit pwm functions and a 16 - bit pwm function, or two 16 - bit pwm functions. in 16 - bit pwm mode, the prescaler operates exactly as it did in 8 - bit mode. its outputs are available to all four clock generator blocks. however in 16 - bit mode, the clock generators for 8 - bit pwm1 and pwm3 are not functional. the clock for 16 - bit pwm0 function is provided by the clock generator for 8 - bit pwm0 and the clock for 16 - bit pwm1 function is provided by the clock generator for 8 - bit pwm2. the sfr bits pw0en (clock generator enable) and pw0s2:0 (clock select bits) provide the pr ogrammable clock controls for 16 - bit pwm channel 0, and bits pw2en and pw2s2:0 provide the programmable clock controls for 16 - bit pwm channel 1. the clock divisor values for the 16 - bit pwm operating frequency are contained in the pw0fg and pw2fg registers for 16 - bit pwm0 and pwm1 (respectively). note that these registers remain 8 - bit values so the clock division remains the same for 16 - bit and 8 - bit operation. when in 16 - bit mode, the two 8 - bit pulse generator timers are concatenated together forming a 16 - bit timer. therefore the pulse generator section of a 16 - bit pwm channel has a repetition rate of the input clock divided by 65,536. as in 8 - bit mode when the counter reaches 0, the output of the 16 - bit pwm channel is set (i.e., logic 1), and when it rea ches the pre - loaded match value it is cleared (i.e., logic 0). general purpose timers/counters the DS87C550 contains three general - purpose timer/ counters. timers 0 and 1 are standard 8051 16 - bit timer/counters with three modes of operation. each of these devices can be used as a 13 - bit timer/counter, 16 - bit timer/counter or 8 - bit timer/counter with auto - reload. timer 0 can also operate as two 8 - bit timer counters. each timer can also be used as a counter of external pulses on the corresponding t0 or t1 pin. the mode of operation is controlled by the timer mode (tmod) register. each timer/counter consists of a 16 - bit register in 2 bytes, which can be found in the sfr map as tl0, th0, tl1, and th1. these two timers are enabled by the timer control (tcon) r egister. a complete description of use and operation of these timers may be found in the ?high - speed microcontroller data book.? timer 2 is a true 16 - bit timer/counter with several additional features as compared to timers 1 and 0. with a 16 - bit reload re gister (rloadl, rloadh), it provides up/down auto - reload timer/counters and timer output clock generation. timer 2 also supports a capture/compare function. this new feature provides additional timing control capabilities for real - time applications with le ss cpu intervention. a more detailed description of this capture/compare feature is provided below. timer 2 the selection of a timer or counter function is controlled by the c/ t2 (t2con.1) bit when c/ t2 is set to 1, timer 2 acts as a counter where it counts 1 to 0 transitions on the t2 pin. when c/ t2 is cleared to a 0, timer 2 functions as a timer where it counts the system clock as determined by the t2m bit (ckcon.5) and the clock divide contr ol bits cd1, cd0 (pmr.7:6) and the 4x/ 2x (pmr.3) bit. a prescaler is used to further divide the input clock by a programmable ratio. the prescaler value is programmable to divide by 1, 2, 4, and 8 as defined by the t2p1 and t2p0 (t2sel .1:0) bits. timer 2 is enabled by setting bit tr2 (t2con.2) to a 1, and disabled by clearing it to a 0.
ds87c55 0 27 of 50 when the lsb of timer/counter 2 (tl2) overflows, flag tf2b (t2sel.4) is set, and flag tf2 (t2con.7) is set when the high byte (th2) overflows. setting flag tf2 also sets flag tf2b. even though only one interrupt is available for timer 2, either or both of these overflows can be programmed to request an interrupt. to enable the interrupt, the timer 2 interrupt enable bit et2 (eie.7) must be set to a 1. th e 8 - bit overflow interrupt or the 16 - bit overflow interrupt is then individually enabled by setting tf2bs (t2sel.6) or tf2s (t2sel.7). since there is only one interrupt vector for both possible timer 2 interrupts, the interrupt service routine must determi ne which event caused the interrupt by polling the available flags. for both interrupt flags, software must clear them upon servicing the interrupt. there is no automatic hardware clearing of these flags. timer 2 capture feature one of the new features ad ded to timer 2 is the capture function. the output of timer 2 is available to four independent 16 - bit capture register pairs (cpth3:cptl3, cpth2:cptl2, cpth1:cptl1, & cpth0:cptl0). these registers are loaded with the 16 - bit value contained in timer 2 when transitions occur on the corresponding input pin int5/ct3, int4/ct2, int3/ct1 or int2/ct0 (p1.3, p1.2, p1.1, or p1.0) respectively. when the capture function is not being used, these input pins also serve as external interrupt inputs. the capture trigger control register (ctcon) can be programmed to make the capture occur on a rising edge, a falling edge, or on either a rising or a falling edge on these input pins. the functionality of the ctcon register is illustrated below. note that the edge sensitivit y established by the setting of ctcon bits applies to both the capture function and the external interrupt function of these input pins. this addition allows maximum flexibility in selecting interrupt polarity. whether these input pins are used as external interrupt inputs or as capture commands, the input will set the appropriate flag in the external interrupt flag register (t2ir.3:0) and will create an interrupt if the associated enable in the extended interrupt enable (eie.3:0) register is set. ctcon re gister functionality ctcon.7 ct3 capture register 3 triggered by a falling edge on int5/ct3 ctcon.6 ct3 capture register 3 triggered by a rising edge on int5/ct3 ctcon.5 ct2 capture register 2 triggered by a falling edge on int4/ct2 ctcon.4 ct2 capture register 2 triggered by a rising edge on int4/ct2 ctcon.3 1 ct capture register 1 triggered by a falling edge on int3/ct1 ctcon.2 ct1 capture register 1 triggered by a rising edge on int3/ct1 ctcon.1 ct0 capture register 0 triggered by a falling edge on int2/ct0 ctcon.0 ct0 capture register 0 triggered by a rising edge on int2/ct0 timer 2 compare feature another new feature added to timer 2 capabilities is the compare function. pri or to enabling this function, the associated compare register pair (cmph0:cmpl0, cmph1:cmpl1, cmph2:cmpl2) is loaded by software with a 16 - bit number. each time timer 2 is incremented, the contents of these registers are compared with the new value of the timer. when a match occurs, the corresponding interrupt flag (t2ir.6:4) is set to a 1 on the next machine cycle and an interrupt will occur if the corresponding enable bit is set in the extended interrupt enable (eie.6:4) register. when a match with cmph0: cmpl0 occurs, port pins p4.0 through p4.5 are set to a 1 if the corresponding bits of the set enable register (setr) are at logic 1. if the match is with cmph1:cmpl1, port pins p4.0 through p4.5 are reset to 0 when the corresponding bits in the reset/toggl e enable register rstr are at logic 1. a match with cmph2:cmpl2 toggles port pins p4.6 and 4.7 if the corresponding bits in the rstr register are at logic 1. note that for the toggle function it is not the port pin latch that is actually toggled. instead, separate flip - flops output the sfr bits tgff1 and tgff0 that actually determine the state of the respective port
ds87c55 0 28 of 50 pin. a 0 in a bit position in either the setr or the rstr register disables the corresponding port pin function. the functionality of the setr and rstr registers is shown below. setr register functionality setr.7 tgff1 this bit toggles if cmph2:cmpl2 and timer 2 match and cmte1 is 1 setr.6 tgff0 this bit toggles if cmph2:cmpl2 and timer 2 match and cmte0 is 1 setr.5 cms5 if 1 then p4.5 is set o n a match between cmph0:cmpl0 and timer 2 setr.4 cms4 if 1 then p4.4 is set on a match between cmph0:cmpl0 and timer 2 setr.3 cms3 if 1 then p4.3 is set on a match between cmph0:cmpl0 and timer 2 setr.2 cms2 if 1 then p4.2 is set on a match between cmph0:c mpl0 and timer 2 setr.1 cms1 if 1 then p4.1 is set on a match between cmph0:cmpl0 and timer 2 setr.0 cms0 if 1 then p4.0 is set on a match between cmph0:cmpl0 and timer 2 rstr register functionality rstr.7 cmte1 if 1 then p4.7 toggles on a match between c mph2:cmpl2 and timer 2 rstr.6 cmte0 if 1 then p4.6 toggles on a match between cmph2:cmpl2 and timer 2 rstr.5 cmr5 if 1 then p4.5 is reset on a match between cmph1:cmpl1 and timer 2 rstr.4 cmr4 if 1 then p4.4 is reset on a match between cmph1:cmpl1 and time r 2 rstr.3 cmr3 if 1 then p4.3 is reset on a match between cmph1:cmpl1 and timer 2 rstr.2 cmr2 if 1 then p4.2 is reset on a match between cmph1:cmpl1 and timer 2 rstr.1 cmr1 if 1 then p4.1 is reset on a match between cmph1:cmpl1 and timer 2 rstr.0 cmr0 if 1 then p4.0 is reset on a match between cmph1:cmpl1 and timer 2 watchdog timer the free - running watchdog timer, if enabled, will set a flag and cause a reset if not restarted by software within the user selectable timeout period. a typical application is to allow the flag to cause a reset. when the watchdog times out, it sets the watchdog timer reset flag (wtrf=wdcon.2) which generates a reset if enabled by the enable watchdog timer reset (ewt=wdcon.1) bit. in this way if the code execution goes awry and software does not reset the watchdog as scheduled, the processor is put in a known good state: reset. in a typical initialization, software selects the desired timeout period using the wd1:0 and the system clock control bits. then, it resets the timer an d enables the processor reset function. after enabling the processor reset function, software must then reset the timer before its timeout period or hardware will reset the cpu. both the ewt and the watchdog reset control (rwt = wdcon.0) bits are protecte d by a timed access circuit. this prevents errant software from accidentally clearing the watchdog. the watchdog timer is controlled by the clock control (ckcon) and the watchdog control (wdcon) sfrs. ckcon.7 and ckcon.6 are wd1 and wd0 respectively, an d they select the watchdog timeout period. of course, the 4x/ 2x (pmr.3) and cd1:0 (pmr.7:6) system clock control bits also affect the timeout period. selection of timeout is shown in table 8.
ds87c55 0 29 of 50 watchdog timeout values table 8 interru pt timeout (clocks) reset time - clocks 4x/ 2x cd1:0 wd1:0=00 wd1:0=01 wd1:0=10 wd1:0=11 wd1:0=00 wd1:0=01 wd1:0=10 wd1:0=11 1 00 2 15 2 18 2 21 2 24 2 15 +512 2 18 +512 2 21 +512 2 24 +512 0 00 2 16 2 19 2 22 2 25 2 16 +512 2 19 +512 2 22 +512 2 25 +512 x 0 1 2 17 2 20 2 23 2 26 2 17 +512 2 20 +512 2 23 +512 2 26 +512 x 10 2 17 2 20 2 23 2 26 2 17 +512 2 20 +512 2 23 +512 2 26 +512 x 11 2 25 2 28 2 31 2 34 2 25 +512 2 28 +512 2 31 +512 2 34 +512 the watchdog timer uses the internal system clock as a time base so its timeout periods are very accurate. from the table, it can be seen that for a 33 mhz crystal frequency, the watchdog timer is capable of producing timeout periods from 3.97 ms (2 17 * 1/33 mhz) to over two seconds (2.034 = 2 26 * 1/33 mhz) with the default setting of cd1:0 (=10). t his wide variation in timeout periods allows very flexible system implementation. in a typical initialization, the user selects one of the possible counter values to determine the timeout. once the counter chain has completed a full count, hardware will s et the interrupt flag (wdif=wdcon.3). there is no hardware support for a watchdog interrupt, but this flag may be polled to determine if the timeout period has been completed. regardless of whether the software makes use of this flag, there are then 512 c locks left until the reset flag (wtrf=wdcon.2) is set. software can enable (1) or disable (0) the reset using the enable watchdog reset (ewt=wdcon.1) bit. note that the watchdog is a free running timer and does not require an enable. power - fail reset the DS87C550 incorporates an internal precision band - gap voltage reference which, when coupled with a comparator circuit, provides a full power - on and power - fail reset function. this circuit monitors the processor?s incoming power supply voltage (v cc ) and ho lds the processor in reset while v cc is out of tolerance. once v cc has risen above v rst , the DS87C550 will restart the oscillator for the external crystal and count 65,536 clock cycles before program execution begins at location 0000h. this power supply m onitor will also invoke the reset state when v cc drops below the threshold condition. this reset condition will remain while power is below the minimum voltage level. when power exceeds the reset threshold, a full power - on reset will be performed. in this way, this internal voltage monitoring circuitry handles both power - up and power down conditions without the need for additional external components. the processor exits the reset condition automatically once v cc meets v rst . this helps the system maintain reliable operation by only permitting processor operation when its supply voltage is in a known good state. software can determine that a power - on reset has occurred by checking the power - on reset flag (por=wdcon.6). software should clear the por bit afte r reading it. the reset pin of the DS87C550 is both an input and an output. when the processor is being held in reset by the power - fail detection circuitry, the reset pin will be actively pulled high by the processor, and can therefore be used as an input to other external devices. power - fail interrupt the band - gap voltage reference that sets a precise reset threshold also generates an optional early warning power - fail interrupt (pfi). when enabled by software, the processor will vector to rom address 003 3h if v cc drops below v pfw . pfi has the highest priority. the pfi enable is in the watchdog control sfr (epfi=wdcon.5). setting this bit to a logic 1 will enable the pfi. application software can also read the pfi flag at wdcon.4. a pfi condition sets th is bit to a 1. the flag is independent of the interrupt enable and software must manually clear it.
ds87c55 0 30 of 50 interrupts the DS87C550 provides 16 interrupt sources with three priority levels. the power - fail interrupt (pfi) has the highest priority. all interrupts, with the exception of the power - fail interrupt, are controlled by a series combination of individual enable bits and a global interrupt enable ea (ie.7). setting ea to a 1 allows individual interrupts to be enabled. clearing ea disables all interrupts reg ardless of their individual enable settings. the three available priority levels are low, high, and highest. the highest priority level is reserved for the power - fail interrupt only. all other interrupt priority levels have individual priority bits that w hen set to a 1 establish the particular interrupt as high priority. in addition to the user selectable priorities, each interrupt also has an inherent or ?natural priority?. given that all interrupt sources maintain the default low priority, the natural pr iority determines the priority of simultaneously occurring interrupts. the available interrupt sources, their flags, their enables their natural priority, and their available priority selection bits are identified in table 9. interrupt sources and priorit ies table 9 name description vector natural priority flag bit enable bit priority control bit pfi power fail interrupt 33h 0 pfi(wdcon.4) epfi(wdcon.5) n/a int0 external interrupt 0 03h 1 ieo(tcon.1) ex0(ie.0) px0(ip.0) scon1 ti1 or r i1 from serial port 1 0bh 2 ri_1(scon1.0) ti_1(scon1.1) es1(ie.5) ps1(ip.5) a/d a/d converter interrupt 13h 3 eoc(adcon1.6) ead(ie.6) pad(ip.6) tf0 timer 0 1bh 4 tf0(tcon.5) et0(ie.1) pt0(ip.1) int2/cf0 external interrupt 2 or capture 0 23h 5 ie2/cf0(t2 ir.0) ex2/ec0(eie.0) px2/pc0(eip.0) cm0f compare match 0 2bh 6 cm0f(t2ir.4) ecm0(eie.4) pcm0(eip.4) int1 external interrupt 1 3bh 7 ie1(tcon.3) ex1(ie.2) px1(ip.2) int3/cf1 external interrupt 3 or capture 1 43h 8 ie3/cf1(t2ir.1) ex3/e c1(eie.1) px3/pc1(eip.1) cm1f compare match 1 4bh 9 cm1f(t2ir.5) ecm1(eie.5) pcm1(eip.5) tf1 timer 1 53h 10 tf1(tcon.7) et1(ie.3) pt1(ip.3) int4/cf2 external interrupt 4 or capture 2 5bh 11 ie4/cf2(t2ir.2) ex4/ec2(eie.2) px4/pc2(eip.2) cm2f compare mat ch 2 63h 12 cm2f(t2ir.6) ecm2(eie.6) pcm2(eip.6) scon0 ti0 or ri0 from serial port 0 6bh 13 ri_0(scon0.0) ti_0(scon0.1) es0(ie.4) ps0(ip.4) int5/cf3 external interrupt 5 or capture 3 73h 14 ie5/cf3(t2ir.3) ex5/ec3(eie.3) px5/pc3(eip.3) tf2 timer 2 7bh 1 5 tf2(tcon.7) tf2b(t2sel.4) et2(eie.7) pt2(eip.7) eprom programming the DS87C550 follows 8 - kbyte eprom standards for the 8051 family. it is available in a uv erasable, ceramic windowed package and in plastic packages for one - time user - programmable versio ns. the part has unique signature information so programmers can support its specific eprom options. programming procedure the DS87C550 should run from a clock speed between 4 and 6 mhz when programmed. the programming fixture should apply address informa tion for each byte to the address lines and the data value to the data lines. the control signals must be manipulated as shown in table 10. the diagram in figure 5 shows the expected electrical connection for programming. note that the programmer must
ds87c55 0 31 of 50 app ly addresses in demultiplexed fashion to ports 1 and 2 with data on port 0. waveforms and timing are provided in the electrical specifications. program the DS87C550 as follows: 1. apply the address value. 2. apply the data value. 3. select the programming opti on from table 10 using the control signals. 4. increase the voltage on v pp from 5v to 12.75v if writing to the eprom. 5. pulse the prog signal 5 times for eprom array and 25 times for encryption table, lock bits, and other eprom bits. 6. repea t as many times as necessary. eprom programming modes table 10 mode rst psen ale/ prog ea/ v pp p2.6 p2.7 p3.3 p3.6 p3.7 program code data h l pl5* 12.75 v l h h h h verify code data h l h h l l l h h program encryp tion array address 0 - 3fh h l pl25* 12.75 v l h h l h program lock bits lb1 h l pl25* 12.75 v h h h h h lb2 h l pl25* 12.75 v h h h l l lb3 h l pl25* 12.75 v h l h h l program option register address fch h l pl25* 12.75 v l h h l l read signature or option register 30, 31, 60, fch h l h h l l l l l *pln indicates pulse to a logic low n times eprom lock bits table 11 level lock bits protection lb1 lb2 lb3 1 u u u no program lock. encrypted; verify if encryption table was programmed. 2 p u u prev ent movc instructions in external memory from reading program bytes in internal memory. ea is sampled and latched on reset. allow no further programming of eprom. 3 p p u level 2 plus no verify operation. also, prevents movx instructi ons in external memory from reading sram (movx) in internal memory. 4 p p p level 3 plus no external execution.
ds87c55 0 32 of 50 security options the DS87C550 employs a standard three - level lock that restricts viewing of the eprom contents. a 64 - byte encryption array al lows the authorized user to verify memory by presenting the data in encrypted form. lock bits the security lock consists of 3 lock bits. these bits select a total of four levels. higher levels provide increasing security but also limit application flexibi lity. table 11 shows the security settings. note that the programmer cannot directly read the state of the security lock. encryption array the encryption array allows an authorized user to verify eprom without allowing the true memory to be dumped. during a verify operation, each byte is exclusive nored (xnor) with a byte in the encryption array. this results in a true representation of the eprom while the encryption is unprogrammed (ffh). once the encryption array is programmed in a non - ffh state, the ve rify value will be encrypted. for encryption to be effective, the encryption array must be unknown to the party that is trying to verify memory. the entire eprom also should be a non - ffh state or the encryption array can be discovered. the encryption arr ay is programmed as shown in table 10. note that the programmer cannot read the array. also note that the verify operation always uses the encryption array. the array has no impact while ffh. simply programming the array to a non - ffh state will cause the encryption to function. eprom erasure characteristics erasure of the information stored in the DS87C550?s eprom occurs when the isolated gate structure of the eprom stage element is exposed to certain wavelengths of light. while the gate structure is to some degree sensitive to a wide range of wavelengths, it is mostly wavelengths shorter than approximately 4,000 angstroms that are most effective in erasing the eprom. since fluorescent lighting and sunlight have wavelengths in this range, they can cause e rasure if the device is exposed to them over an extended period of time (weeks for sunlight, years in room - level fluorescent light). for this reason (and others mentioned previously), it is recommended that an opaque covering be placed over the window of t he - k (windowed plcc) package type. for complete eprom erasure, exposure to ultraviolet light at approximately 2537 angstroms to a dose of 15w - sec/cm 2 at minimum is recommended. in practice, exposing the eprom to an ultraviolet lamp of 12,000uw/cm 2 rating for 20 to 39 minutes at a distance of approximately 1 inch will normally be sufficient.
ds87c55 0 33 of 50 other eprom options the DS87C550 has user - selectable options that must be set before beginning software execution. these options use eprom bits rather than sfrs. the eprom selectable options may be programmed as shown in table 10. the option register sets or reads these selections. the bits in the option register have the following function: bit 7 - 4 reserved. program to a 1. bit 3 watchdog por default. set to 1: wa tchdog reset function is disabled on power - up. set to 0: watchdog reset function is enabled automatically. bit 2 - 0 reserved. program to a 1. signature the signature bytes identify the product and programming revision to eprom programmers. this informatio n is located at programming addresses 30h, 31h, and 60h. this information is as follows: address value meaning 30h dah manufacturer 31h 55 model 60h 00 extension eprom programming configuration figure 5
ds87c55 0 34 of 50 electrical specifications absolute maximum rat ings* voltage on any pin relative to ground - 0.3v to (v cc +0.5v) voltage on v cc relative to ground - 0.3v to 6.0v operating temperature - 40 c to +85 c storage temperature - 55 c to +125 c soldering temperature 160 c for 10 seconds * this is a stress rating on ly and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliabi lity. dc electrical characteristics parameter symbol min typ max units notes supply voltage v cc 4.5 5.0 5.5 v 1 power - fail warning v pfw 4.25 4.38 4.5 v 1 minimum operating voltage v rst 4.0 4.13 4.25 v 1 supply current active mode i cc 30 ma 2 supply current idle mode i idle 15 ma 3 supply current stop mode i stop 1 a 4 supply current stop mode w band - gap i spbg 100 a 4 input low level v il - 0.3 +0.8 v 1 input high level v ih 2.0 v cc +0.3 v 1 input high level xtal2 and rst v ih2 3.5 v cc +0.3 v 1 output low voltage ports 1, 3, 4, 5, 6 @ i ol = 1.6 ma v ol1 0.15 0.45 v 1 output low voltage ports 0, 2, ale , psen @ i ol = 3.2 ma v ol2 0.15 0.45 v 1 output high voltage ports 1, 2, 3, 4, 6, ale , psen @ i oh = - 50 a v oh1 2.4 v 1, 6 output high voltage ports 1, 2, 3, 4, 6, @ i oh = - 1.5 ma v oh2 2.4 v 1, 7 output high voltage ports 0, 2, 5, ale, psen in bus mode i oh = - 8 ma v oh3 2.4 v 1, 5 input low current ports 1, 2, 3 @ 0.45v i il - 55 a 11 transition current from 1 to 0 ports 1, 2, 3 @ 2v i tl - 650 a 8 input leakage port 0, 5 and ea i l - 10 +10 a 10
ds87c55 0 35 of 50 dc electrical characteristics input leakage port 0, bus mode i l - 300 +300 a 9 rst pulldo wn resistance r rst 50 170 ko notes for DS87C550 dc electrical characteristics: all parameters apply to both commercial and industrial temperature operation unless otherwise noted. 1. voltage referenced to digital ground (gnd). 2. active current measured wi th 33 mhz clock source on xtal1, v cc =rst=5.5v, other pins disconnected. 3. idle mode current measured with 33 mhz clock source on xtal1, v cc =5.5v, rst at ground, other pins disconnected. 4. stop mode current measured with xtal1 and rst grounded, v cc =5.5v, all other pins disconnected. this value is not guaranteed. users that are sensitive to this specification should contact dallas semiconductor for more information. 5. when addressing external memory. 6. rst=v cc . this condition mimics operation of pins in i/o mode . port 0 is tristated in reset and when at a logic high state during i/o mode. 7. during a 0 to 1 transition, a one - shot drives the ports hard for two oscillator clock cycles. this measurement reflects port in transition mode. 8. ports 1, 2, 3, 5, 6 source tr ansition current when being pulled down externally. current reaches its maximum at approximately 2v. 9. 0.45 ds87c55 0 36 of 50 a/d converter electrical characteristics (@ v cc = 5v 10%, 0 - 70oc) parameter symbol min typ max units note s analog supply voltage a vcc a vss v cc gnd v cc gnd v analog supply current ai dd 1 ma analog idle mode current ai ddi tbd a analog power - down mode current ai ddpd 300 na analog input voltage internal reference external reference adc7 - adc0 0 a vref - 2.50 a vref+ v external analog reference voltage a vref - a vref+ av ss - 0.2 av cc + 0.2 v internal reference voltage change with temperature change with av cc v bg v bgt v bgv 2.4375 2.50 50 10 2.5625 v ppm/ c mv/v analog input capacitance c in 10 15 pf a/d clock t aclk 1 6.25 us 2 sampling time t ads 5 t aclk t aclk conversion time t adc 16 t aclk t aclk 3 resolution 10 bits differential non - linearity e dl 1.0 lsb integral non - linearity e il 2.0 lsb offset error e os 2.0 lsb ga in error e g 1.0 % cross - talk between a/d inputs e ct - 60 db notes for a/d converter electrical characteristics 1. the following condition must not be exceeded: gnd - 0.2v < av ss < v cc + 0.2v. 2. due to the dynamic nature of the a/d converter, t aclk has both min and max specifications. 3. a complete conversion cycle requires 16 aclk periods, including five input sampling periods.
ds87c55 0 37 of 50 typical i cc versus frequency ac electrical characteristics 33 mhz variable clock parameter symbol min max min max units oscillator freq. (ext. osc.) (ext. crystal) 1/t clcl 0 1 33 33 0 1 33 33 mhz ale pulse width t lhll 40 0.375 t mcs - 5 ns port 0 address valid to ale low t avll 10 0.125 t mcs - 5 ns address hold after ale low t llax1 10 0.125 t mcs - 5 ns ale low to vali d instruction in t lliv 56 0.625 t mcs - 20 ns ale low to psen low t llpl 10 0.125 t mcs - 5 ns psen pulse width t plph 55 0.5 t mcs - 5 ns psen low to valid instruction in t pliv 41 0.5t mcs - 20 ns input instruction hold after psen t pxix 0 0 ns input instruction float after psen t pxiz 26 0.25t mcs - 5 ns port 0 address to valid instruction in t aviv 71 0.75t mcs - 20 ns port 2 address to valid instruction in t aviv2 81 0.875 t mcs - 25 ns psen low to address float t plaz 0 0 ns notes for ac electrical characteristics the value for t mcs is a time period related to the machine cycle clock in terms of the processor?s input clock frequency. its value is highlighted in the table ?stretch value timing? for all possible settings of the 4x/ 2x and cd1:0 bits. the default condition is cd1 = 1 and cd0 = 0, where 4x/ 2x is disregarded. all parameters apply to both commercial and industrial temperature operation unless otherwise noted.
ds87c55 0 38 of 50 all signals characterized with load capacitance of 80 pf except port 0, ale, psen , rd and wr with 100 pf. interfacing to memory devices with float times (turn off times) over 25 ns may cause contention. this will not damage the parts, but will cause an increase in operating current. specifications assume a 50% duty cycle for the oscillator. port 2 and ale timing will cha nge in relation to duty cycle variation. movx characteristics variable clock parameter symbol min max units stretch values c st (md2:0) data access ale pulse width t lhll2 0.375t mcs - 5 0.5t mcs - 5 1.5t mcs - 10 ns c st =0 1<=c st <=3 4<=c st <=7 address hold af ter ale low for movx write t llax2 0.125t mcs - 5 0.25t mcs - 5 1.25t mcs - 10 ns c st =0 1<=c st <=3 4<=c st <=7 rd pulse width t rlrh 0.5t mcs - 5 c st *t mcs - 10 ns c st =0 1<=c st <=7 wr pulse width t wlwh 0.5t mcs - 5 c st *t mcs - 10 ns c st =0 1<=c st <=7 rd low to valid data in t rldv 0.5t mcs - 20 c st *t mcs - 20 ns c st =0 1<=c st <=7 data hold after read t rhdx 0 ns data float after read t rhdz 0.25t mcs - 5 0.5t mcs - 5 1.5t mcs - 15 ns c st =0 1<=c st <=3 4<=c st <=7 ale low to valid data in t lldv 0.625t mcs - 20 (c st +0.25)*t mcs - 40 (c st +1.25)*t mcs - 40 ns c st =0 1<=c st <=3 4<=c st <=7 port 0 address to valid data in t avdv1 0.75t mcs - 20 (c st +0.375)*t mcs - 20 (c st +1.375)*t mcs - 20 ns c st =0 1<=c st <=3 4<=c st <=7 port 2 address to valid data in t avdv2 0. 875t mcs - 20 (c st +0.5)*t mcs - 20 (c st +1.5)*t mcs - 20 ns c st =0 1<=c st <=3 4<=c st <=7 ale low to rd or wr low t llwl 0.125t mcs - 5 0.25t mcs - 5 1.25t mcs - 10 1.25t mcs +5 0.25t mcs +5 1.25t mcs +10 ns c st =0 1<=c st <=3 4<=c st <=7 port 0 a ddress to rd or wr low t avwl1 0.25t mcs - 5 0.5t mcs - 5 2.5t mcs - 10 ns c st =0 1<=c st <=3 4<=c st <=7 port 2 address to rd or wr low t avwl2 0.375t mcs - 5 0.625t mcs - 5 2.625t mcs - 10 ns c st =0 1<=c st <=3 4<=c st <=7 data valid to wr transition t qvwx - 5 ns
ds87c55 0 39 of 50 movx characteristics cont?d data hold after write t whqx 0.25t mcs - 5 0.5t mcs - 5 1.5t mcs - 10 ns c st =0 1<=c st <=3 4<=c st <=7 rd low to address float t rlaz - ((0.125 t mcs ) - 5) ns rd or wr high to ale high t whlh 0 0.25t mcs - 5 1.25t mcs - 10 10 0.25t mcs +5 1.25t mcs +10 ns c st =0 1<=c st <=3 4<=c st <=7 notes for movx characteristics using stretch memory cycles t mcs is a ti me period related to the stretch memory cycle selection. the following table shows the value of t mcs for each stretch selection. c st is the stretch cycle value as determined by the md2, md1, & md0 bits of the ckcon register. t mcs time periods system clock selection t mcs 4x/ 2x , cd1, cd0 = 100 0.5 t clcl 4x/ 2x , cd1, cd0 = 000 1 t clcl 4x/ 2x , cd1, cd0 = x10 4 t clcl 4x/ 2x , cd1, cd0 = x11 1024 t clcl rd , wr pulse width with stretch cycles rd , wr pulse width (in oscillator clocks) md2 md1 md0 movx machine cycles 4x/ 2x =1 cd1:0=00 4x/ 2x =0 cd1:0=00 4x/ 2x =x cd1:0=10 4x/ 2x =x cd1:0=11 0 0 0 2 0.5 t clcl 1 t clcl 2 t clcl 2048 t clcl 0 0 1 3 t clcl 2 t clcl 4 t clcl 4096 t clcl 0 1 0 4 2 t clcl 4 t clcl 8 t clcl 8192 t clcl 0 1 1 5 3 t clcl 6 t clcl 12 t clcl 12288 t clcl 1 0 0 9 4 t clcl 8 t clcl 16 t clcl 16384 t clcl 1 0 1 10 5 t clcl 10 t clcl 20 t clcl 20480 t clcl 1 1 0 11 6 t clcl 12 t clcl 24 t clcl 24576 t clcl 1 1 1 12 7 t clcl 14 t clcl 28 t clcl 28672 t clcl external clock characteristics parameter symbol min typ max units not es clock high time t chcx 10 ns clock low time t clcx 10 ns clock rise time t clcl 5 ns clock fall time t chcl 5 ns
ds87c55 0 40 of 50 serial port mode 0 timing characteristics parameter symbol min typ max units notes serial port clock cycle time sm2=0, 12 clo cks per cycle sm2=1, 4 clocks per cycle t xlxl 12t clcl 4t clcl ns ns output data setup to clock rising sm2=0, 12 clocks per cycle sm2=1, 4 clocks per cycle t qvxh 12t clcl 4t clcl ns ns output data hold from clock rising sm2=0, 12 clocks per cycle sm2=1 , 4 clocks per cycle t xhqx 12t clcl 4t clcl ns ns input data hold from clock rising sm2=0, 12 clocks per cycle sm2=1, 4 clocks per cycle t xhdx 12t clcl 4t clcl ns ns clock rising edge to input data valid sm2=0, 12 clocks per cycle sm2=1, 4 clocks per c ycle t xhdv 12t clcl 4t clcl ns ns explanation of ac symbols in an effort to remain compatible with the original 8051 family, this device specifies the same parameters as such devices, using the same symbols. for completeness, the following is an explana tion of the symbols. t time a address c clock d input data h logic level high l logic level low i instruction p psen q output data r rd signal v valid w wr signal x no longer a valid logic level z tristate
ds87c55 0 41 of 50 power cycle timing characteristics parameter symbol min typ max units notes cycle start - up time t csu 1.8 ms 1 power - on reset delay t por 65536 t clcl 2 notes for power cycle timing characteristics 1. start - up time for crystals varies with l oad capacitance and manufacturer. time shown is for an 11.0592 mhz crystal manufactured by fox. 2. reset delay is a synchronous counter of crystal oscillations after crystal start - up. at 33 mhz, this time is 1.99 ms. eprom programming and verification param eter symbol min typ max units notes programming voltage v pp 12.5 13.0 v 1 programming supply current i pp 75 ma oscillator frequency 1/t clcl 4 6 mhz por delay t delay 65536 t clcl 2 address setup to prog low t avgl 48t clcl address hold after prog t ghax 48t clcl data setup to prog low t dvgl 48t clcl data hold after prog t ghdx 48t clcl enable high to v pp t ehsh 48t clcl v pp setup to prog low t shgl 10 s v pp hold after prog t ghsl 10 s prog width t glgh 90 110 s address to data valid t avqv 48t clcl enable low to data valid t elqv 48t clcl data float after enable t ehqz 0 48t clcl prog high to prog low t ghgl 10 s notes for eprom programming and verification 1. all voltage referenced to ground. 2. the microcontroller holds itself in reset for this duration when power is applied. no signals should be manipulated during this interval since the microcontroller is ignoring inputs. at a 4 mhz oscillator frequency, this period is 16.4 ms.
ds87c55 0 42 of 50 external program memory read cycle external data memory read cycle
ds87c55 0 43 of 50 external data memory write cycle dat a memory write with stretch=1
ds87c55 0 44 of 50 data memory write with stretch=2 data memory write with stretch=4 external clock drive
ds87c55 0 45 of 50 serial port mode 0 timing serial port 0 (synchronous mode) high speed operation sm2=1=>txd clock=xtal/4 serial port 0 (syn chronous mode) sm2=0=>txd clock=xtal/12
ds87c55 0 46 of 50 power cycle timing eprom programming and verification waveforms
ds87c55 0 47 of 50 80 - pin quad flat pack (14.0 mm x 20.0 mm) notes: 1. dimensions d1 and e1 include mold mismatch, but do not include mold protrusion; allowable protrusion is 0.25 mm per side. 2. details of pin 1 identifier are optional but must be located within the zone indicated. 3. allowable dambar protrusion is 0.08 mm total in excess of the b dimensions; protrusion not to be located on lower radius or foot of lead. dim min max a - 3.40 a1 0.25 - a2 2.55 2.87 b 0.30 0.45 c 0.13 0.23 d 23.70 24.10 d1 19.90 20.10 e 17.70 18.10 e1 13.90 14.10 e 0.80 bsc l 0.65 0.95
ds87c55 0 48 of 50 68 - pin windowed clcc ltr min max a .160 .190 a1 .034 - b .026 .032 b1 .017 .023 c .005 .010 ch1 .035 .045 d .978 .998 d1 .940 .960 d2 .910 .930 e .978 .998 e1 .940 .960 e2 .910 .930 e1 .050 bsc notes: 1. pin - 1 identifier to be located in zone indicat ed. 2. all dimensions shown are in inches.
ds87c55 0 49 of 50 68 - pin plcc note: 1. pin - 1 identifier to be located in zone indicated. 2. dimensions are in inch units. dim min max a .165 .180 a1 .090 .120 a2 .020 - b .026 .032 b1 .013 .021 c .0075 .0125 ch1 .042 .048 d .985 .995 d1 .950 .958 d2 .882 .938 e .985 .995 e1 .950 .958 e2 .882 .938 e1 .050 bsc
ds87c55 0 50 of 50 history revision the following represent the key differences between the 06/16/98 and the 06/14/99 version of the DS87C550 data sheet. please review this summary careful ly. 1. corrected minor typographical errors on pages 3, 5, 7, 9, 17, 20, 21, 22, 26 and 33. 2. added standard ?absolute maximum ratings? notation. 3. added aid specification conditions (v cc = 5v 10%, 0 - 70 c). 4. updated port 5?s v ol and i l specification.


▲Up To Search▲   

 
Price & Availability of DS87C550

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X